import router from '@/router'
export const hasPermission = (value: string) => {
  const permission = (router.currentRoute.value.meta.permission || []) as string[]
  return permission.includes(value)
}
